home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inventor Labs: Technology
/
INVENTORLABS_TECHNOLOGY.BIN
/
pc
/
files
/
shared.cst
/
00030_Script_TEXT Funct Parent Script
< prev
next >
Wrap
Text File
|
1997-07-24
|
3KB
|
76 lines
--o Funct: TEXT
property pCastNum, pPictSprite, pStartSprite, pQTsprite, pSnd, pAreaHotSpotID
property pRelatedHSid
global gModeManager, gInterfaceMgrObj, gAreaManagerObj, gUtilityObj, gActiveInventor, gCompileMode, whatCastindex
------------------------------------------------------------------------------------------------------------------ò
on birth me
return ( me )
end birth
------------------------------------------------------------------------------------------------------------------ò
on mInit me, aLineFromDataBase, aPICTsprite
set pPictSprite = aPICTsprite
set pRelatedHSid = item 1 of aLineFromDataBase
set SndString = item 4 of aLineFromDataBase
if gCompileMode then
if not voidp( SndString ) and (SndString <> empty) then
set SndNum = the number of cast SndString
set SndIndex = value( "#" & SndString )
addProp(whatCastindex, SndIndex, SndNum)
end if
else set whatCastindex = getprop( gMstrPictIndex,gActiveInventor)
if (SndString <> empty) then
set SndIndex = value( "#" & SndString )
set pSnd = getprop( whatCastindex , SndIndex)
else set pSnd = 0
end mInit
------------------------------------------------------------------------------------------------------------------ò
on mDiscloseFunctionalityType me
return( #TEXT )
end mDiscloseFunctionalityType
------------------------------------------------------------------------------------------------------------------ò
on mActivate me
if (pSnd <> 0) then
sound stop 1
updatestage
puppetsound 2, psnd
updatestage
end if
mDisplayClickText(gInterfaceMgrObj, pRelatedHSid)
mUpdateReturnFrame(gUtilityObj,label("QTVR"))
end mActivate
------------------------------------------------------------------------------------------------------------------ò
on mClose me
end mClose
------------------------------------------------------------------------------------------------------------------ò
on mClickEvent me
end mClickEvent
------------------------------------------------------------------------------------------------------------------ò
on mDisclose me
--put "TEXT"
end
------------------------------------------------------------------------------------------------------------------ò
on mSetAreaHotSpotID me, aAreaHotSpotID
set pAreaHotSpotID = aAreaHotSpotID
end mSetAreaHotSpotID
------------------------------------------------------------------------------------------------------------------ò